package net.hn.hnms.biz.project.request;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 刘昊
 * @date 2024-03-14 9:13
 */
@Data
@ApiModel("施工任务")
public class ConstructionTaskReq extends BaseReq implements Serializable {

    @ApiModelProperty(value = "id")
    @TableId(type = IdType.ASSIGN_UUID)
    private String taskId;

    @ApiModelProperty(value = "任务名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String taskName;

    @ApiModelProperty(value = "任务描述")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String taskDescription;

    @ApiModelProperty(value = "任务负责人")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String taskLeader;

    @ApiModelProperty(value = "任务开始日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date taskStartDate;

    @ApiModelProperty(value = "计划名称")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String planName;

    @ApiModelProperty(value = "施工单位")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String constructionUnit;

    @ApiModelProperty(value = "任务结束日期")
    @JsonFormat(
            pattern = "yyyy-MM-dd"
    )
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private Date taskEndDate;

    @ApiModelProperty(value = "施工计划id")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String constructionId;

    @ApiModelProperty(value = "公司编码")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String companyCode;

    @ApiModelProperty(value = "备注")
    @TableField(updateStrategy= FieldStrategy.IGNORED)
    private String remark;

    @ApiModelProperty(value = "煤矿编码")
    private String mineCode ;

}
